<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($name); ?></title>
<script type="text/javascript" src="__APP__/statics/jquery.1.4.2.js"></script>
<script type="text/javascript" src="__APP__/statics/js/catelist.js"></script>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font-family:"微软雅黑",Arial,Lucida,Verdana,Helvetica,sans-serif;font-size:12px;color:#333;line-height:150%;background:#fff;}
a:link,a:visited{color:#333;text-decoration:none;}
a:hover{color:#317ee7;}
a:active{color:#900;}
/* top */
.top{width:100%;height:25px;line-height:25px;background:url(__APP__/statics/topbg.gif);}
.top2{width:1200px;margin:0 auto;}
.top2-left{float:left;cursor:pointer}
.top2-right{float:right;margin-left:10px;}
/* logo */
.logo{width:1200px;height:80px;margin:0 auto;margin-top:10px;}
.logo span{display:block;float:left;}


.search{display:block;background:#317ee7;width:510px;height:35px;line-height:35px;margin:0 auto;margin-top:15px;float:left;vertical-align:middle}
.search ul{display:block;float:left;}

/* nav */
.category-content{height:35px;position:relative;margin:0 auto;margin-top:10px;z-index:113;background:#317ee7;font-family:"微软雅黑"}
.category-content span{display:block;float:left;text-align:center;width:120px;line-height:35px;font-size:17px;color:#fff}
.category-content span:hover{background:#ffba00}
.allgoods{height:35px;line-height:35px;border:0px;text-align:center;background:#317ee7;color:#fff;font-size:17px}
.category-content .category{width:1200px;position:absolute;top:0px;z-index:113;width:199px;+height:456px;border:1px solid #dadad9;border-top:none;background:#fefefe;box-shadow:1px 1px 1px #dedede;}
.category-content .category-list li{height:72px;border:2px solid #fff;border-right:none;position:relative;z-index:113; vertical-align:bottom;}
.category-content .category-list a:hover{text-decoration:none;color:#D2364C;}
.category-content .category-info{padding-left:12px;}
.category-content .category-name{overflow:hidden;position:relative;padding-top:10px;font:600 16px/30px "宋体";}
.category-content .category-name i{position:absolute;top:13px;width:25px;height:25px;-top:6px;}
.category-content .category-name b{margin-left:4px;font:400 12px/28px "宋体";}
.category-content .category-name a{color:#4c4c4c;}
.category-content .category-name .ml-22{margin-left:35px;}
.category-content .list-nz i{background-position:0 -200px;}
.category-content .list-nanz i{background-position:-23px -200px;}
.category-content .list-tz i{background-position:-48px -200px;}
.category-content .list-ny i{background-position:-72px -200px;}
.category-content .list-xb i{background-position:-96px -200px;}
.category-content .list-xl i{background-position:0 -225px;}
.category-content .c-category-list{font:400 12px/24px "宋体";}
.category-content .c-category-list a{margin-right:8px;color:#626262;}
.category-content .category-info{position:relative;height:72px;overflow:hidden;}
.category-content .category-info em{position:absolute;top:16px;right:10px;width:13px;height:13px;color:#9b9b9b;}
.category-content .category .hover{box-shadow:0px 2px 3px #ccc;margin-left:-1px;padding-left:1px;z-index:999;} 
.category-content .hover .category-info{border:none;text-decoration:none;background:#fff;}
.category-content .menu-item{display:none;position:absolute;left:196px;z-index:11; width:500px;padding:0 0 0 2px;background:#fff;border:none;box-shadow:0px 2px 3px #dedede; border-top:1px solid #bbb9;zoom:1;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4)";*filter:progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4);}
.category-content .menu-item .area-in{position:relative; z-index:1; }
.category-content .menu-item .area-bg{padding:10px 0 10px 20px;}
.category-content .menu-in{display:none;}
.category-content .category-list li.hover .category-info{z-index:999;}
.category-list li.hover .menu-in{border:2px solid #dedede;}
.category-list li.hover{border:2px solid #dedede;border-right:none;}

.c-category-list{width:160px;margin-right:1px;padding-bottom:10px;border-bottom:1px solid #f4f4f4;zoom:1;overflow:hidden;height:20px;}
.area-bg dl{float:left;height:30px;width:70px;font:400 12px/24px "宋体";}
</style>
</head>

<body>
<div class="top">
   <div class="top2">
    <span class="top2-left" id="addto">加入收藏夹</span>
	<span class="top2-right"><a href="__APP__/">商城首页</a></span>
	<span class="top2-right"><a href="__GROUP__/Help">客户服务</a></span>
	<span class="top2-right"><a href="__APP__/Member/trade">我的订单</a></span>
	<span class="top2-right">[<a href="__APP__/Member/reg">免费注册</a>]</span>
	<?php if($user == ''): ?><span class="top2-right">
	[<a href="__APP__/Member/login">登录</a>]</span>
	<span class="top2-right"><a href="__APP__/Member/qqlogin" target="_blank"><img src="__APP__/statics/qq_login.png"></a></span>
	<?php else: ?>
	<span class="top2-right">
	<a href="__APP__/Member"><span style="color:#cc0000"><?php echo ($user); ?></span></a>,[<a href="__APP__/Member/loginout">退出</a>]</span><?php endif; ?>
	<span class="top2-right">欢迎来到蚂蚁街！</span>
   </div>
</div>
<div class="top-ad"></div>
<div class="logo">
   <span style="width:350px;"><a href="__APP__/"><img src="__APP__/statics/logo-201305.png"></a></span>
<form method="get" action="__GROUP__/List/search">
   <span class="search">
        <ul style="width:430px;height:31px;line-height:31px;padding:3px">
	       <input name="keyword" type="text" style="height:18px;margin-top:0px;padding:5px;border:0px;" size="65">
	   </ul>
	   <ul class="sbox" style="float:left;width:70px;text-align:center;">
	   <input type="image" src="__APP__/statics/search.jpg" height="31" width="59px"></ul>

	   <ul style="float:left;width:200px;margin-top:-10px"></ul>
   </span>
</form>
   <span style="display:block;float:right;margin-top:15px;"><a href='http://localhost/eshop/Help/page/?type=ship&amp;id=2'><img src='__APP__/./ad/SearchR/520a400e754be.jpg' ></a></span>
</div>

<div style="clear:both"></div>


<!--导航菜单-->
<div class="category-content">
	<div style="width:1200px;margin:0 auto">
			<div>
				<span class="all-goods" style="width:200px">全部商品</span>
				<a href="__APP__/"><span class="all-goods" <?php if($current_class == 1): ?>style="background:#ffba00"<?php endif; ?>>首页</span></a>
				<a href="__APP__/Wshop"><span class="all-goods" <?php if($current_class == 2): ?>style="background:#ffba00"<?php endif; ?>>品牌街</span></a>
				<a href="__APP__/Market"><span class="all-goods" <?php if($current_class == 3): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁超市</span></a>
				<a href="__APP__/Fruit"><span class="all-goods" <?php if($current_class == 4): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁预售</span></a>
				<a href="__APP__/Cart/show.html"><span class="all-goods" style="float:right;width:200px"><img src="__APP__/statics/cart.png">购物车（<i id="cart_num"><?php echo ($cart_num); ?></i>）</span></a>
			</div>

			<div class="category">
			    <ul class="allgoods">全部分类</ul>
				<ul class="category-list" style="display:none">
<?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><li class="js_toggle">
						<div class="category-info list-xl">
							<h3 class="category-name">
								<i <?php if($cat["icon"] != ''): ?>style="background:url(__APP__/statics/icons/cate/<?php echo ($cat["icon"]); ?>)"<?php else: ?>style="background:url(__APP__/statics/icons/cate/c.gif)"<?php endif; ?>></i>
								<a href="__APP__/c/<?php echo ($cat["cat_id"]); ?>" class="ml-22"><?php echo ($cat["cat_name"]); ?></a>
							</h3>
							<p class="c-category-list">
			<?php if(is_array($cat[rec])): $i = 0; $__LIST__ = $cat[rec];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rec): $mod = ($i % 2 );++$i;?><a href="__APP__/c/<?php echo ($rec["cat_id"]); ?>"><?php echo ($rec["cat_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
							</p>
							<em>&gt;</em>
						</div>
						<!--弹出右侧-->
						<div class="menu-item menu-in">
							<div class="area-bg">
			<?php if(is_array($cat[son])): $i = 0; $__LIST__ = $cat[son];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;?><dl><a href="__APP__/c/<?php echo ($son["cat_id"]); ?>"><?php echo ($son["cat_name"]); ?></a></dl><?php endforeach; endif; else: echo "" ;endif; ?>
							</div>
						</div>
						<!--弹出右侧-->
					</li><?php endforeach; endif; else: echo "" ;endif; ?>

				</ul>
			</div>
	</div>
</div>

<script type="text/javascript"> 
$(".category").mouseover(function(){
	$(".category-list").show();
})
$(".category").mouseout(function(){
	$(".category-list").hide();
})
</script>
 
<link href="__APP__/statics/css/picview.css" rel="stylesheet" type="text/css"  charset="utf-8"/>
<link href="__APP__/statics/jquery-ui/css/ui-lightness/jquery-ui-1.9.2.custom.css" rel="stylesheet">
<style type="text/css">
body{font-size:13px;font-family:"微软雅黑";}
.goods{width:1200px;height:400px;border:0px;	margin:0 auto;z-index:99;margin-top:15px;}
.sgood{width:730px;height:360px;border-left:1px dotted;float:left;margin-left:10px;}
.title{max-height:60px;border-bottom:1px dotted;margin-left:10px;font-size:17px;font-weight:bold;overflow:hidden}
.price{margin-top:20px;font-size:13px;margin-left:10px;border-bottom:1px dotted;}
.price li{text-decoration:none;height:30px;}
.prop{margin-left:10px;}
.poo{width:700px;}
.poo span{display:block;float:left;}
.buy_zone{width:500px;border:1px solid #E7DBB1;padding:5px;margin-top:5px;background-color:#FFFEE6;}
.buy_zone:hover{border:1px solid #FF9900;}
.goods_num{margin-top:5px;margin-left:20px;width:250px;}
.buy{margin-top:10px;margin-left:20px;z-index:99}
/*规格选择*/
.catt a {border:#c8c9cd 1px solid;text-align:center;background-color:#fff;margin-left:5px;margin-top:6px;padding-left:10px;padding-right:10px;display:block;white-space:nowrap;color:#000;text-decoration:none;float:left;}
.catt a:hover {border:#ff6701 2px solid;margin:-1px;margin-left:4px;margin-top:5px;}
.catt a:focus {outline-style:none;}
.catt .cattsel {border:#ff6701 2px solid;margin:-1px;background:url("__APP__/statics/choose_bg.jpg") no-repeat bottom right;margin-left:4px;margin-top:5px;}
.catt .cattsel a:hover {border:#ff6701 2px solid;margin:-1px;background:url("__APP__/statics/choose_bg.jpg") no-repeat bottom right;}

.tixing{position:absolute;height:30px;margin-top:-40px;margin-left:400px;color:red;display:none;font-weight:bold;}
/*规格选择end*/
.clear{clear:both}
/*商品详细描述start*/
.content{width:1200px;margin:0 auto;margin-top:0px;}
#intro-left{width:210px;margin-right:0px;float:left;border:0px solid #dedede;}
.other_goods{width:210px;border:1px solid #dedede;}
.ads{width:210px;margin-top:10px;border:0px solid #dedede;}
#intro{width:980px;float:right;}
.com{width:980px;float:right;}
#title{height:25px;line-height:25px;padding:5px;background-color:#F7F7F7;border-bottom:1px solid #dedede;}
#tuijian{width:200px;margin:0 auto;text-align:center;border-bottom:1px dotted #dedede;margin-bottom:-1px;}

.floor_hot{padding:5px;width:195px;height:80px;border-bottom:1px dashed #dedede}
.floor_hot span{float:left}
.hot_title{max-height:36px;width:125px;overflow:hidden;margin-left:10px}
.renqi{margin-left:10px;color:#99cc00}
#price{text-align:left;color:#E4393C;font-size:14px;font-family:'微软雅黑';font-weight:bold;margin-left:15px;}

#tabs3 td{padding:10px}
/*分页*/
.list-page{width:960px;float:right;text-align:right;margin-right:20px;margin-top:10px;}
.page2{height:20px;width:20px;border:1px solid #FF5500; text-align:center;line-height:20px;display:inline-block;color:#0066CC;cursor:pointer;}
.page2:hover{color:#0066CC}
.current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;line-height:20px;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;cursor:pointer;}
.fan{height:20px;width:50px;border:1px solid #FF5500; text-align:center;line-height:20px;color:#FF0000;background:#FFEEE5;display:inline-block;cursor:pointer;}
</style>

<script type="text/javascript" src="__APP__/statics/js/picview.js"></script>

<input type="text" id="good_id" style="display:none" value="<?php echo ($goods["goods_id"]); ?>">
<input type="text" id="choose_id" style="display:none" value="<?php echo ($product_id); ?>">

<div class="goods">
<!--左边start-->
     <div class="preview" style="float:left;">
		<div class="smallImg">
			<div class="scrollbutton smallImgUp disabled"></div>
			<div id="imageMenu">
				<ul>
<?php if(is_array($pic)): $i = 0; $__LIST__ = $pic;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pic): $mod = ($i % 2 );++$i;?><li><img src="__APP__/<?php echo ($pic["s_pic"]); ?>" width="60" height="60" alt="洋妞"/></li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div class="scrollbutton smallImgDown"></div>
		</div><!--smallImg end-->
	
		<div id="vertical" class="bigImg">
<?php if($goods["m_pic"] == ''): ?><img src="__APP__/statics/none.jpg" alt="" id="midimg" />
<?php else: ?>
		<img src="__APP__/<?php echo ($goods["m_pic"]); ?>" alt="" id="midimg" /><?php endif; ?>
			<div style="display:none;" id="winSelector"></div>
		</div><!--bigImg end-->
		
		<div id="bigView" style="display:none;"><img height="800px" width="800px" alt="" src="" /></div>
		
	</div><!--preview左边 end-->

<!--右边-->
	<div class="sgood">
	   <div class="title"><?php echo ($goods["goods_name"]); ?><br>
		  <font size="2" color="red"><?php echo ($goods["s_intro"]); ?></font>
	  </div>
	  <div class="price">
	     <li>市场价：<strike><?php if($goods["market_price"] == 0.00): echo $goods['price']*1.2; else: echo ($goods["market_price"]); endif; ?></strike></li>
		 <li>销售价：<font size="5" color="red"><span id="n_price"><?php echo ($goods["price"]); ?></span></font></li>
		 <!--<li>品&nbsp;&nbsp;&nbsp;牌：<?php if($brand["brand_name"] != ''): echo ($brand["brand_name"]); else: ?>无<?php endif; ?></li>-->
		 <li>单&nbsp;&nbsp;&nbsp;位：<?php if($goods["unit"] != ''): echo ($goods["unit"]); else: ?>无<?php endif; ?></li>
		 <li>重&nbsp;&nbsp;&nbsp;量：<?php if($goods["weight"] != ''): echo ($goods["weight"]); ?> g<?php else: ?>无<?php endif; ?></li>
		 <li>配&nbsp;&nbsp;&nbsp;送：由<font color='red'>蚂蚁街</font>为您<font color='red'>免费配送</font>,并提供售后服务</li>
	  </div>
 
     <div class="prop">
<!--规格1-->
       <div class="poo">
	   <span style="margin-top:6px;"><?php echo ($prop1_n); ?></span>
	    <span class="catt">
<?php if(is_array($prop1)): $i = 0; $__LIST__ = $prop1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$prop1): $mod = ($i % 2 );++$i;?><a  onclick="changeAtt(this)" href="javascript:;"><?php echo ($prop1); ?><input style="display:none" name="guige1" id="guige1" type="radio" value="<?php echo ($prop1); ?>"/></a><?php endforeach; endif; else: echo "" ;endif; ?>
       </span>
	   </div>
	   <div class="clear"></div>
<!--规格2-->
      <div class="poo">
	   <span style="margin-top:6px;"><?php echo ($prop2_n); ?></span>
	    <span class="catt">
<?php if(is_array($prop2)): $i = 0; $__LIST__ = $prop2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$prop2): $mod = ($i % 2 );++$i;?><a  onclick="changeAtt(this)" href="javascript:;"><?php echo ($prop2); ?><input style="display:none" name="guige2" id="guige2" type="radio" value="<?php echo ($prop2); ?>"/></a><?php endforeach; endif; else: echo "" ;endif; ?>
       </span>
	  </div>
	  <div class="tixing"> < 选择规格</div>
	  <div class="clear"></div>
	  
	  <!--prop结束-->
	  <div class="buy_zone">
	    <div id="get_prop" style="margin-left:20px;"><font color="red"><span id="a_prop"></span></font></div>
		<div class="goods_num">
			购买数量：
			<input id="min" name="" type="button"  style="height:20px;width:15px;" value="-" />
			<input id="text_box" name="" type="text" style="width:15px;" value="1" readonly/>
			<input id="add" name="" type="button" style="height:20px;width:15px;" value="+" />
			(库存:<span id="store">有货</span>)
		</div>
<?php if($goods["store"] > 0): ?><div class="buy" id="buy">
			<a onclick="shou()" href="javascript:;" ><img src="__APP__/statics/btn-fastbuy.gif"  border="0"/></a>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a onclick="buy()" href="javascript:;"><img src="__APP__/statics/btn-buy.gif" border="0"/></a>
		</div>
<?php else: ?>	
		<div class="buy" id="buy">
			很遗憾，没货啦！
		</div><?php endif; ?>
      </div>
	   <!--buy_zone结束-->
	</div>
	<!--sgood结束-->
</div>
</div>
<!--goods结束-->
<div class="clear"></div>

<div class="content">
        <!--左侧start-->
        <div id="intro-left">
		   <div class="other_goods">
		    <ul id="title">推荐商品</ul>
<?php if(is_array($tuijian)): $i = 0; $__LIST__ = $tuijian;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hot): $mod = ($i % 2 );++$i;?><ul class="floor_hot">
				  <span><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot["goods_id"]); ?>"><img alt="<?php echo ($hot["goods_name"]); ?>" src="__APP__/<?php echo ($hot["s_pic"]); ?>" width="60"></a>
				  </span>
				  <span>
					  <dl id="price" style="margin-left:5px">￥<?php echo ($hot["price"]); ?></dl>
					  <dl class="hot_title"><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot["goods_id"]); ?>"><?php echo ($hot["goods_name"]); ?></a></dl>
					  <dl class="renqi">人气：<?php echo ($hot["view_count"]); ?></dl>
				  </span>
			</ul><?php endforeach; endif; else: echo "" ;endif; ?>
		   </div>
<?php if(is_array($ads)): $i = 0; $__LIST__ = $ads;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ads): $mod = ($i % 2 );++$i;?><div class="ads"><?php echo ($ads["content"]); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        
		<!--商品、评论start-->
		<div id="intro" style="border:0px;">
			<ul id="muu">
				<li><a href="#content">商品详情</a></li>
				<li><a href="#tabs3">商品参数</a></li>
				<li id="comm"><a href="#tabs2">商品评论</a></li>
				<li><a href="#tabs4">服务保障</a></li>
				<li style="float:right;"><a onclick="buy()" href="javascript:;" ><img height="23" src="__APP__/statics/add_cart.gif"></a></li>
			</ul>
			<div id="content">
			        <div id="content-box"><img src="__APP__/statics/sending.gif" height="40px" width="40px"></div>
					<!--评论开始
					<div class="com" id="com" style="border:0px;">
					<ul>
						<li><a href="#all-com">全部评价(972)</a></li>
						<li><a href="#a-com">好评(923)</a></li>
						<li><a href="#b-com">中评(45)</a></li>
						<li><a href="#c-com">差评(4)</a></li>
					</ul>
					<div id="all-com" style="text-align:center;font-size:10px;color:#666666">
					<img src="__APP__/statics/sending.gif" height="40px" width="40px"><br>
					加载中
					</div>
					<div id="a-com">2</div>
					<div id="b-com"></div>
					<div id="c-com">3</div>
				</div>
				商品、评论end-->
			</div>
			<!--评论-->
			<div id="tabs3" style="margin-left:-20px">
				<table border="1" width="650px" style="border-collapse: collapse">
					<tr>
						<td colspan="2" style="background:#FAFAFA"><b>基本参数</b></td>
					</tr>
		<?php if(is_array($pdt)): $i = 0; $__LIST__ = $pdt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pdt): $mod = ($i % 2 );++$i;?><tr>
						<td width="30%"><?php echo ($pdt["kz_name"]); ?>:</td>
						<td><?php echo ($pdt["kuozhan"]); ?></td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				</table>
			</div>
            <!--评论-->
			<div id="tabs2"><div id="commlist"><style>
.comm-box{width:970px;padding:5px;float:right;border-bottom:1px solid #dddddd;margin-top:10px;margin-right:-20px;font-family:"微软雅黑"}
.user-pic{width:130px;float:left;text-align:center;color:#3366cc;font-size:12px}
.comm-content{width:700px;float:left;margin-left:20px;margin-top:5px}
.comm-level{width:100px;float:right;text-align:center;margin-top:5px}
.comm-time{margin-top:10px;color:#b0b0b0;font-size:12px}
</style>
<div>
<?php if(is_array($comm)): $i = 0; $__LIST__ = $comm;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$comm): $mod = ($i % 2 );++$i;?><div class="comm-box">
   <div class="user-pic">
      <ul><?php if($comm["u_pic"] != ''): ?><img src="<?php echo ($comm["u_pic"]); ?>"><?php else: ?><img src="__APP__/statics/no_upic.png"><?php endif; ?></ul>
	  <ul><?php echo ($comm["uname"]); ?></ul>
   </div>
   <div class="comm-content">
      <ul><?php echo ($comm["comment"]); ?></ul>
	  <ul class="comm-time"><?php echo (date("Y年m月d日 H:i",$comm["com_time"])); ?></ul>
   </div>
   <div class="comm-level">
   <?php switch($comm["level"]): case "a": ?><img alt="非常好" src="__APP__/statics/a.jpg"><?php break;?>
    <?php case "b": ?><img alt="一般般" src="__APP__/statics/b.jpg"><?php break;?>
	<?php case "c": ?><img alt="不满意" src="__APP__/statics/c.jpg"><?php break; endswitch;?>
   </div>
</div><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<div style="width:600px;margin:0 auto;text-align:center;margin-top:30px;">
<?php if($comm == ''): ?>暂时还没有人评论！<?php endif; ?>
</div>


<div class="list-page" id="page"><?php echo ($page); ?></div>
</div></div>
			<!--服务-->
			<div id="tabs4"><?php echo ($shouhou["content"]); ?></div>
		</div>

</div>

<div class="clear"></div>
<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<script type="text/javascript" src="__APP__/statics/js/re_num.js"></script>
<?php if($user != ' '): ?><!--判断是否登录-->
<script src="__APP__/statics/js/login.js"></script>
<link href="__APP__/statics/css/login.css" rel="stylesheet" type="text/css"><?php endif; ?>
<script src="__APP__/statics/jquery-ui/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript"> 
$.fn.smartFloat = function() {
	var position = function(element) {
		var top = element.position().top, pos = element.css("position");
		$(window).scroll(function() {
			var scrolls = $(this).scrollTop();
			if (scrolls > top) {
				if (window.XMLHttpRequest) {
					element.css({
						position: "fixed",
						top: 4
					});	
				} else {
					element.css({
						top: scrolls
					});	
				}
			}else {
				element.css({
					position: pos,
					top: top
				});	
			}
		});
};
	return $(this).each(function() {
		position($(this));						 
	});
};
//绑定
$("#muu").smartFloat();
</script>

<script>
$(function(){
   $( "#intro" ).tabs({ active: 0 });//tab标签
   $( "#com" ).tabs({ active: 0 });//tab标签
   
   //ajax加载商品详情
   var id=$("#good_id").val();
   $("#content-box").load("__URL__/ajax_intro/?id="+id);
    
	//去除虚线
    $('a,input[type="button"],input[type="submit"]').bind('focus',function(){               
	     if(this.blur){                      
		 this.blur();                
		 };        
    });
})
</script>
<script type="text/javascript">
	//规格选择
	function changeAtt(t) {
     t.lastChild.checked='checked';
     for (var i = 0; i<t.parentNode.childNodes.length;i++) {
            if (t.parentNode.childNodes[i].className == 'cattsel') {
                   t.parentNode.childNodes[i].className = '';
            }
      }
          t.className = "cattsel";
          changePrice();
     }

     function changePrice(){
	    var q1=$("input[name='guige1']").val();
        var p1=$("input[name='guige1']:checked").val();
		var q2=$("input[name='guige2']").val();
		var p2=$("input[name='guige2']:checked").val();
		var id=$("#good_id").val();
		$(".tixing").css('display','none');
		if(p1==undefined){
		     $("#a_prop").html("已选择："+p2);
	     }else if(p2==undefined){
		     $("#a_prop").html("已选择："+p1);
		}else{
		     $("#a_prop").html("已选择："+p1+","+p2);
		}
      
	  //有两个规格
      if(q1!=undefined&&q2!=undefined){
	     if(p1!=undefined&&p2!=undefined){
					$.ajax({
					type:"POST",
					url:"__URL__/get_price",
					dataType:"json",
					data:{id:id,prop1:p1,prop2:p2},
					success:function(data){
								if(data.store>='1'){
										$("#n_price").html(data.price);
										$("#buy").html("<a onclick='shou()' href='javascript:;'><img src='__APP__/statics/btn-fastbuy.gif'  border='0'/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick='buy()' href='javascript:;'><img src='__APP__/statics/btn-buy.gif' border='0'/></a>");
										$("#store").html(data.store);
										$("#text_box").attr('maxsize',data.store);
										$("#choose_id").val(data.choose_id);
								}else{
										$("#buy").html("<font color='red'><b>很遗憾，此组合无货！</b></font>");
										$("#store").html("无货");
							    }
					}
					})
				}
		 }
          //只有一个规格
		  if((q1==undefined&&q2!=undefined&&p2!=undefined)||(q1!=undefined&&q2==undefined&&p1!=undefined)){
				$.ajax({
					type:"POST",
					url:"__URL__/get_price",
					dataType:"json",
					data:{id:id,prop1:p1,prop2:p2},
					success:function(data){
								if(data.store>='1'){
										$("#n_price").html(data.price);
										$("#buy").html("<a onclick='shou()' href='javascript:;'><img src='__APP__/statics/btn-fastbuy.gif'  border='0'/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick='buy()' href='javascript:;'><img src='__APP__/statics/btn-buy.gif' border='0'/></a>");
										$("#store").html(data.store);
										$("#text_box").attr('maxsize',data.store);
										$("#choose_id").val(data.choose_id);
								}else{
										$("#buy").html("<font color='red'><b>很遗憾，此组合无货！</b></font>");
										$("#store").html("无货");
							    }
					}
					})
		 }
		 //判断是否有值结束
		 

     }

	 function buy(){
	    var q1=$("input[name='guige1']").val();
        var p1=$("input[name='guige1']:checked").val();
		var q2=$("input[name='guige2']").val();
		var p2=$("input[name='guige2']:checked").val();
		if((q1!=undefined&&p1==undefined)||(q2!=undefined&&p2==undefined)){
	           jError("<strong>请选择规格！</strong>",{VerticalPosition : 'center',HorizontalPosition : 'center'});
			   $(".tixing").css('display','block');
		 }else{
		     addCart();
		}
	}

	function shou(){
	    var goods_id=$("#good_id").val();
		$.ajax({
		     type:"GET",
			 url:"__URL__/goods_store",
			 dataType:"json",
			 data:{'goods_id':goods_id},
			 success:function(data){
			     if(data==1){
				    		$.webox({
								height:380,
								width:400,
								bgvisibel:true,
								title:'会员登录',
								iframe:'__GROUP__/Member/slogin.html?'+Math.random
							});
				 }else if(data==2){
				    jNotify("<strong>您已经收藏过此商品！</strong>",{VerticalPosition : 'center',HorizontalPosition : 'center'});
			     }else{
			        jSuccess("<strong>收藏成功！</strong>",{VerticalPosition : 'center',HorizontalPosition : 'center'});
			     }
			 }
		})
	}

	function addCart(){
	     var product_id=$("#choose_id").val();
		 var buy_num=$("#text_box").val();
		  $.ajax({
					type:"POST",
					url:"__GROUP__/Cart/add",
					dataType:"html",
					data:{id:product_id,num:buy_num},
					success:function(data){
					      jSuccess("<strong>加入购物车成功！</strong>",{VerticalPosition : 'center',HorizontalPosition :'center'});
						  $("#cart_num").load("__URL__/updateCart");
					}
		 })
	}

	$("#min").click(function(){
	    var num=parseInt($("#text_box").val())-1;
		if(num<1){
		$("#text_box").val('1');
		}
	})
</script>

<div style="width:1200px;margin:0 auto;margin-top:20px;height:170px;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd">
   <div style="padding:10px;float:left;margin-left:20px;width:220px">
     <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">购物指南</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">新手上路</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">顾客必读</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">联系客服</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">常见问题</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">购物流程</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/1.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
     <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">配送方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货上门</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">配送时效</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货时间</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">物流费用</a></li>
	 </div>
	 <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/2.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
      <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">支付方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">货到付款</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">网银支付</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">礼品卡支付</a></li>

	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/3.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
      <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">特色服务</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">售后服务</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">质量保障</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">价格优势</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/4.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:200px">
     <li style="color:#666666;font-size:15px;font-weight:bold">微信扫一扫</li>
     <li style="margin-top:10px;border:1px solid #dddddd;width:100px"><img src="__APP__/statics/wechat.jpg" width="100px"></li>
   </div>
</div>

<div style="text-align:center;width:1200px;margin:0 auto;;margin-top:10px">
<?php echo C('BOTTOM'); ?>
<br><br>
<a href="http://webscan.360.cn/index/checkwebsite/url/www.mayijie.com" target="_blank"><img height="41" src="http://img.webscan.360.cn/status/pai/hash/55b4861c61020a4e248b99462bba432c"/></a>
<img src="__APP__/statics/chengxin.png"><br>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=26985878" charset="UTF-8"></script>
</div>

<style>
#floatPanel .ctrolPanel{width:36px;height:166px;background:#fff url('__APP__/statics/icons/kefu_bg.gif') no-repeat left top;border:solid 1px #ddd;position:fixed;right:25px;top:50%;overflow:hidden;z-index:10000; _position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300);}
#floatPanel .ctrolPanel a{width:34px;font-size:12px;color:#ff6600;letter-spacing:1px;text-align:center;overflow:hidden;}
#floatPanel .ctrolPanel .arrow{height:29px;line-height:28px;display:block;margin:1px auto;}
#floatPanel .ctrolPanel .arrow span{display:none;}
#floatPanel .ctrolPanel .arrow:hover{background:#f4f4f4;}
#floatPanel .ctrolPanel .arrow:hover span{display:block;}
#floatPanel .ctrolPanel .contact{height:60px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .contact span{line-height:90px;}
#floatPanel .ctrolPanel .qrcode{height:40px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .qrcode span{display:none;}

#floatPanel .popPanel{width:230px;height:242px;position:fixed;right:70px;top:50%;z-index:10000;overflow:hidden;display:none;_position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300); }
#floatPanel .popPanel .popPanel-inner{width:230px;height:242px;position:relative;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .arrowPanel{width:10px;height:240px;position:absolute;right:1px;top:102px;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow01{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #ddd;position:absolute;bottom:0;position:absolute;left:2px;top:0;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow02{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #fff;position:absolute;bottom:0;position:absolute;left:0;top:0;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel{width:220px;height:240px;text-align:center;background:#fff;border:solid 1px #ddd;position:absolute;left:0;top:0;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel img{width:200px;height:200px;border:none;padding:10px 10px 5px 10px;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel span{font-size:12px;color:#666;line-height:24px;letter-spacing:1px;}
</style>
<div id="floatPanel">

	<div class="ctrolPanel">
		<a class="arrow" href="#"><span>顶部</span></a>
		<a class="contact" href="http://wpa.qq.com/msgrd?V=1&Uin=<?php echo C('KEFU_QQ'); ?>&Site=<?php echo C('WEB_NAME'); ?>&Menu=yes" 
target="_blank"><span>客服</span></a>
		<a class="qrcode" href="#"><span>微信二维码</span></a>
		<a class="arrow" href="#"><span>底部</span></a>
	</div>
	
	<div class="popPanel">
		<div class="popPanel-inner">
			<div class="qrcodePanel"><img src="__APP__/statics/wechat.jpg" /><span>微信扫描二维码关注“蚂蚁街”</span></div>
			<div class="arrowPanel">
				<div class="arrow01"></div>
				<div class="arrow02"></div>
			</div>
		</div>
	</div>
	
</div>

<script language="javascript">
   $("#addto").click(function(){
      var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd':'Ctrl';
   if(document.all)
   {
      window.external.addFavorite(window.location,document.title);
   }
   else if(window.sidebar)
   { 
       window.sidebar.addPanel(document.title,window.location);
   }
   else{
       alert('添加失败，请用Ctrl+D进行添加');
   }
   });
</script>
<script type="text/javascript">
$(function(){
	
	// 页面浮动面板
	$("#floatPanel > .ctrolPanel > a.arrow").eq(0).click(function(){
		$("html,body").animate({scrollTop :0}, 800);
		return false;
	});
	$("#floatPanel > .ctrolPanel > a.arrow").eq(1).click(function(){
		$("html,body").animate({scrollTop : $(document).height()}, 800);
		return false;
	});

	var objPopPanel = $("#floatPanel > .popPanel");	
	var w = objPopPanel.outerWidth();
	
	$("#floatPanel > .ctrolPanel > a.qrcode").bind({mouseover:function(){
		objPopPanel.css("width","0px").show();
		objPopPanel.animate({"width" : w + "px"},300);
		return false;
	},mouseout : function(){
			objPopPanel.animate({"width" : "0px"},300);
			return false;
			objPopPanel.css("width",w + "px");
		}	
	});
	
});
</script>
</body>
</html>